package com.rub.android.ui.activity

import android.app.Activity
import com.rub.android.base.BaseActivity
import com.rub.android.R


const val DETAIL = "detail"

class DetailActivity : BaseActivity() {
    override fun getLayoutId() = R.layout.container_layout
    override fun initView() {
        supportFragmentManager
            .beginTransaction()
            /*.replace(
                R.id.container,
                DetailFragment.instance(
                    intent.getStringExtra(SOURCE_KEY).textOrDefault(),
                    intent.getStringExtra(ID).textOrDefault()
                ),
                DETAIL
            )*/
            .commitAllowingStateLoss()
    }

    companion object {
        fun jump(activity: Activity, sourceKey: String, id: String) {
            /*activity.startActivity(Intent(activity, DetailActivity::class.java).apply {
                putExtra(SOURCE_KEY, sourceKey)
                putExtra(ID, id)
            })*/
        }
    }
}